/*
Ryan Perry
April 25, 2008
*/

#include "Graphics.h"

/* "Blits" the source surface onto the destination surface.  Given coordinates are assigned to an
    SDL custom datatype (SDL_Rect), that is then used to assign the source's position on the
    destination surface. */
void Graphics::draw(SDL_Surface* destSurface, SDL_Surface* sourceSurface, int coordX, int coordY)
{
    SDL_Rect destCoord;
    destCoord.x = coordX;
    destCoord.y = coordY;

    SDL_BlitSurface(sourceSurface, NULL, destSurface, &destCoord);
}
